package cn.codefit.quju.system.service.service.impl;


import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * web端用户相关接口
 * @author oldA
 */
//@DubboService(version = Constant.VERSION, interfaceClass = SysUserService.class)
@RequestMapping(value =  "/user")
@RestController
@Slf4j
public class SysUserServiceImpl implements SysUserService {

    @Autowired
    private SysUserBizService sysUserBizService;

    /**
     * 根据用户名获取用户信息
     * @param userName
     * @return
     */
    @GetMapping(value = "/getUserDetailInfoByUserName")
    @Override
    public CommonResponseDto<SysUserDto> selectSysUserByUserName(@RequestParam(name = "userName" ,required = false) String userName) {
        //查询用户信息
        SysUserDto sysUserDto=sysUserBizService.selectSysUserByUserName(userName);
        return CommonResponseDto.success(sysUserDto);
    }

}
